package com.small.admin.service.impl;

import com.small.admin.entity.Menu;
import com.small.admin.entity.RoleMenu;
import com.small.admin.mapper.RoleMenuMapper;
import com.small.admin.service.RoleMenuService;
import com.small.common.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者: fenny
 * 邮箱: 893146555@qq.com
 * 时间: 2017/10/17 16:30
 * 描述:
 */
@Service
public class RoleMenuServiceImpl extends BaseServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService {

    @Override
    public List<Long> selectByAdminMenu(long adminId) {
        return mapper.selectByAdminMenu(adminId);
    }

    @Override
    public List<Long> selectByMenu(Menu menu) {
        return mapper.selectByMenu(menu);
    }

}
